//
//  AddView.m
//  ZYShang
//
//  Created by wangguangming on 15/8/13.
//  Copyright © 2015年 Amber. All rights reserved.
//

#import "AddView.h"
#import "Base.h"
@implementation AddView
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
        {
        self.backgroundColor=[UIColor whiteColor];
        [self addall];
        }
    return self;
}
-(void)addall
{
    
    self.nameLaber=[[UILabel alloc] initWithFrame:CGRectMake(5, 0, WIDTH/4-5, 38)];
    self.textField=[[UITextField alloc] initWithFrame:CGRectMake(WIDTH/4,0, WIDTH*3/4-10, 38)];
//    self.textField.layer.borderColor=[[UIColor grayColor] CGColor];
//    self.textField.layer.borderWidth=1.0;
    self.nameLaber.textColor=[UIColor grayColor];
    self.textField.textColor=[UIColor grayColor];
    UILabel *l=[[UILabel alloc] initWithFrame:CGRectMake(0, 38, WIDTH, 2)];
    l.backgroundColor=COLOR;
    [self addSubview:l];
    [self addSubview:self.nameLaber];
    [self addSubview:self.textField];
    
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
